# Activation Function For Kuro Project
# Verision: 0.1
# -By TRI_Kannmu 2021/11/5
import numpy as np
import math
def sigmoid(x):
    # Sigmoid Function
    return 1 / (1 + np.exp(-x))

def Limit(x):
    # Limition Function
    if x < 0:
        return 0
    elif 0<= x <=1:
        return x
    else:
        return 1


def Neuro_Transmitter(x,Delta_t):
    return (2/(1+(np.exp(math.log((2/(x+1))-1)-Delta_t))))-1